import api from './index'


export default {
	//注册
	addRegister: data => api.post("/system/user/register", data),
	//登录
	getLogin: data => api.post("/login", data),
	//发送验证码
	getCode: data => api.get("/ax/axUser/registSentMsg", data),
	//获取用户信息
	getInfo: data => api.get("/ax/axUser/getInfo", data),
	//更新用户信息
	setInfo: data => api.post("/ax/axUser/appupdateSysuer", data),
	//退出
	getLogout: data => api.get("/logout", data),
	//新增收货地址
	addAppadd: data => api.post("/ax/axReceiveAddress/appadd", data),
	//查询收货地址
	getAppaddList: data => api.get("/ax/axReceiveAddress/getmyaddress", data),
	getAppaddId: (id) => api.get(`/ax/axReceiveAddress/${id}`),
	//地址修改
	setAddress: data => api.put("/ax/axReceiveAddress", data),
	//删除地址
	delAddress: ids => api.delete(`/ax/axReceiveAddress/${ids}`),
	//设置默认地址
	setDefaultByAddress: (id) => api.post(`/ax/axReceiveAddress/setMyDefaultAddress?id=${id}`),
	//充值规则
	getAxRechargeRule: data => api.get("/ax/AxRechargeRule/list", data),
	//充值
	// setUserRecharge: data => api.post("/ax/axRechargeRecord/userRecharge", data),
	setUserRecharge: data => api.get("/ax/axRechargeRecord/toRecharge", data),
	setRechargezfb: data => api.get("/ax/axRechargeRecord/toRechargezfb", data),
	//购买记录
	getMyshoplist: data => api.get("/ax/axOrder/myshoplist", data),
	//公司介绍26 用户使用协议24 用户隐私协议25
	getArticle: (number) => api.get(`/ax/axArticle/${number}`),
	//我的银行卡
	getMybanklist: data => api.get("/ax/axBankCard/mybanklist", data),
	//新增银行卡
	addMyBankCard: data => api.post("/ax/axBankCard/addMyBankCard", data),
	//我的委拍
	getMylist: data => api.get("/ax/axAuthorizationSell/mylist", data),
	//委拍记录
	getMylistRecord: data => api.get("/ax/axAuthorizationSell/mylistRecord", data),
	//委拍
	setBuy: data => api.post("/ax/axOrder/sellGood", data),
	//积分明细
	getAccountChangeRecord: data => api.get("/ax/axAccountChangeRecord/mylist", data),
	//上传头像
	setUpload: data => api.post("/common/upload", data),
	//会员列表
	getVip: data => api.get("/ax/AxMemberLevel/appAblelist", data),
	//会员申请
	setVip: data => api.post('/ax/AxMemberApplyRecord/appAdd', data),
	//提现
	setDeposit: data => api.post("/ax/AxWithdrawal/appadd", data),
	//会员申请记录
	getVipSelect: data => api.get("/ax/AxMemberApplyRecord/mylist", data),
	
	//提现说明
	getConfigBy7: data => api.get("/system/config/7", data),



}